import request from '@/utils/request'

// 查询补助申报时间列表
export function listAppSubsidyTime(query) {
  return request({
    url: '/business/appSubsidyTime/list',
    method: 'get',
    params: query
  })
}

// 查询补助申报时间详细
export function getAppSubsidyTime(id) {
  return request({
    url: '/business/appSubsidyTime/' + id,
    method: 'get'
  })
}

// 新增补助申报时间
export function addAppSubsidyTime(data) {
  return request({
    url: '/business/appSubsidyTime',
    method: 'post',
    data: data
  })
}

// 修改补助申报时间
export function updateAppSubsidyTime(data) {
  return request({
    url: '/business/appSubsidyTime',
    method: 'put',
    data: data
  })
}

// 删除补助申报时间
export function delAppSubsidyTime(id) {
  return request({
    url: '/business/appSubsidyTime/' + id,
    method: 'delete'
  })
}
export function getYearList(query) {
  return request({
    url: '/business/common/getYearList',
    method: 'get',
    params: query
  })
}
